<?php

namespace App\Observers;

use App\Models\User;
use App\Notifications\NotifiMsg;
use App\Events\SendNoticeToOne;


class MemberObserver
{
    public function updated(User $user)
    {
        if ($user->isDirty('is_member')) { 
            event(new SendNoticeToOne($user,2,1));
            // $user->notify($user);
        }
    }
    



}
